/**   
 * 项目名：phms3
 * 日期：    2019-11-22 17:31:06  
 * Copyright (c) 2015- HTSC-版权所有     
 */
package com.joysuch.wwyt.mh.repository;

import com.joysuch.wwyt.mh.entity.MhAlarmRuleInformChannal;
import com.joysuch.wwyt.mh.entity.MhAlarmRuleUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;


/**
 * MhMajorHazardDao
 * 
 */
public interface MhAlarmRuleUserDao extends JpaRepository<MhAlarmRuleUser, Long>,QuerydslPredicateExecutor<MhAlarmRuleUser> {

    public Page<MhAlarmRuleUser> findAll(Specification<MhAlarmRuleUser> spec, Pageable pageable);

    public MhAlarmRuleUser save(MhAlarmRuleUser bean);

    public void delete(MhAlarmRuleUser bean);
    public void deleteByRuleId(Long id);
}
